CharDriverState *cState, char *storeString)
{
#ifdef CONFIG_STUBDOM
- return 0;
+ fprintf(logfile, "can't store dev %s name for domid %d in %s from a stub domain\n", devName, domid, storeString);
+ return ENOSYS;
#else
int xc_handle;
struct xs_handle *xs;
void xenstore_process_logdirty_event(void)
{
-#ifdef CONFIG_STUBDOM
- /* XXX we just can't use shm. */
- return;
-#else
char *act;
static char *active_path = NULL;
static char *next_active_path = NULL;
/* Map the shared-memory segment */
fprintf(logfile, "%s: key=%16.16llx size=%lu\n", __FUNCTION__,
(unsigned long long)key, logdirty_bitmap_size);
+
+#ifdef CONFIG_STUBDOM
+ /* XXX we just can't use shm. */
+ fprintf(logfile, "Log dirty is not implemented in stub domains!\n");
+ return;
+#else
shmid = shmget(key, 2 * logdirty_bitmap_size, S_IRUSR|S_IWUSR);
if (shmid == -1) {
fprintf(logfile, "Log-dirty: shmget failed: segment %16.16llx "
seg = NULL;
return;
}
+#endif
/* Remember the paths for the next-active and active entries */
if (pasprintf(&active_path,
/* Ack that we've switched */
xs_write(xsh, XBT_NULL, active_path, act, len);
free(act);
-#endif
}